package work5.Grades;

import work5.CourseManagement.Course;
import work5.StudentInfManagement.Student;

public class Grade {
    private Student student;

    private Course course;

    private double grade;


    public Grade() {
    }

    public Grade(Student student, Course course, double grade) {
        this.student = student;
        this.course = course;
        this.grade = grade;
    }

    /**
     * 获取
     *
     * @return student
     */
    public Student getStudent() {
        return student;
    }

    /**
     * 设置
     *
     * @param student
     */
    public void setStudent(Student student) {
        this.student = student;
    }

    /**
     * 获取
     *
     * @return course
     */
    public Course getCourse() {
        return course;
    }

    /**
     * 设置
     *
     * @param course
     */
    public void setCourse(Course course) {
        this.course = course;
    }

    /**
     * 获取
     *
     * @return grade
     */
    public double getGrade() {
        return grade;
    }

    /**
     * 设置
     *
     * @param grade
     */
    public void setGrade(double grade) {
        this.grade = grade;
    }

    public String toString() {
        return "Grade{student = " + student + ", course = " + course + ", grade = " + grade + "}";
    }
}
